package bigapps.myneighbor.domain;
import javax.persistence.EntityManager;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.xml.bind.annotation.XmlRootElement;

//import bigapps.myneighbor.dao.impl.EMF;

@XmlRootElement(name="ParkingInfo")
//@Entity(name = "ParkingInfo")
public class ParkingInfo {
//	public static final EntityManagerFactory emFactory = Persistence.createEntityManagerFactory("transactions-optional");  
	private String name;
	@Id      
	@GeneratedValue(strategy = GenerationType.IDENTITY)      
	private Long piId;
	  
	  private String description;
	  private String spaceInfo;
	  private String location;
	  private String facilityType;
	  private String managementType;
	  private String rates;
	  private String permits;
	  private String hourOfOperation;

	  public String getName(){
	    return name;
	  }

	  public void setName(String name){
	    this.name = name;
	  }

	  public String getDescription(){
	    return description;
	  }

	  public void setDescription(String description){
	    this.description = description;
	  }

	  public String getSpaceInfo(){
	    return spaceInfo;
	  }

	  public void setSpaceInfo(String spaceInfo){
	    this.spaceInfo = spaceInfo;
	  }

	  public String getLocation(){
	    return location;
	  }

	  public void setLocation(String location){
	    this.location = location;
	  }

	  public String getFacilityType(){
	    return facilityType;
	  }

	  public void setFacilityType(String facilityType){
	    this.facilityType = facilityType;
	  }

	  public String getManagementType(){
	    return managementType;
	  }

	  public void setManagementType(String managementType){
	    this.managementType = managementType;
	  }

	  public String getRates(){
	    return rates;
	  }

	  public void setRates(String rates){
	    this.rates = rates;
	  }

	  public String getPermits(){
	    return permits;
	  }

	  public void setPermits(String permits){
	    this.permits = permits;
	  }

	  public String getHourOfOperation(){
	    return hourOfOperation;
	  }

	  public void setHourOfOperation(String hourOfOperation){
	    this.hourOfOperation = hourOfOperation;
	  }

	  public String toString(){
	    return "Name: " + name + "\n" + "Description: " + description + "\n" + "Space Info: " + spaceInfo + "\n" + "Location: " + location + "\n" + "Facility Type: " + facilityType + "\n" + "Management Type: " + managementType + "\n" + "Rates: " + rates + "\n" + "Permits: " + permits + "\n" + "Hour Of Operation: " + hourOfOperation;
	  }
/*	  
	  public void save(){
		  EntityManager em = EMF.get().createEntityManager();
		  em.persist(this);
		  em.close();
	  }
*/	  
	}
